<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
    <p>我是一个段落</p>
    <div>
        我是div
        <p>我是div的子元素</p>
    </div>
    <button>点我删除div里面的所有的内容</button>
    <script>
        $('button').click(function () {
            $('div').empty();
        });
    </script>
</body>
</html>